package com.tpc.control.jpa;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * RoutingData entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "routing_data", catalog = "production_control")
public class RoutingData implements java.io.Serializable {

	// Fields

	private RoutingDataId id;
	private CommonData commonData;
	private Plant plant;
	private String process01;
	private String process02;
	private String process03;
	private String process04;
	private String process05;
	private String process06;
	private String process07;
	private String process08;
	private String process09;
	private String process10;
	private String process11;
	private String process12;
	private String process13;
	private String process14;
	private String process15;
	private String process16;
	private String process17;
	private String process18;
	private String process19;
	private String process20;
	private String processName01;
	private String processName02;
	private String processName03;
	private String processName04;
	private String processName05;
	private String processName06;
	private String processName07;
	private String processName08;
	private String processName09;
	private String processName10;
	private String processName11;
	private String processName12;
	private String processName13;
	private String processName14;
	private String processName15;
	private String processName16;
	private String processName17;
	private String processName18;
	private String processName19;
	private String processName20;

	// Constructors

	/** default constructor */
	public RoutingData() {
	}

	/** minimal constructor */
	public RoutingData(RoutingDataId id, CommonData commonData, Plant plant) {
		this.id = id;
		this.commonData = commonData;
		this.plant = plant;
	}

	/** full constructor */
	public RoutingData(RoutingDataId id, CommonData commonData, Plant plant,
			String process01, String process02, String process03,
			String process04, String process05, String process06,
			String process07, String process08, String process09,
			String process10, String process11, String process12,
			String process13, String process14, String process15,
			String process16, String process17, String process18,
			String process19, String process20, String processName01,
			String processName02, String processName03, String processName04,
			String processName05, String processName06, String processName07,
			String processName08, String processName09, String processName10,
			String processName11, String processName12, String processName13,
			String processName14, String processName15, String processName16,
			String processName17, String processName18, String processName19,
			String processName20) {
		this.id = id;
		this.commonData = commonData;
		this.plant = plant;
		this.process01 = process01;
		this.process02 = process02;
		this.process03 = process03;
		this.process04 = process04;
		this.process05 = process05;
		this.process06 = process06;
		this.process07 = process07;
		this.process08 = process08;
		this.process09 = process09;
		this.process10 = process10;
		this.process11 = process11;
		this.process12 = process12;
		this.process13 = process13;
		this.process14 = process14;
		this.process15 = process15;
		this.process16 = process16;
		this.process17 = process17;
		this.process18 = process18;
		this.process19 = process19;
		this.process20 = process20;
		this.processName01 = processName01;
		this.processName02 = processName02;
		this.processName03 = processName03;
		this.processName04 = processName04;
		this.processName05 = processName05;
		this.processName06 = processName06;
		this.processName07 = processName07;
		this.processName08 = processName08;
		this.processName09 = processName09;
		this.processName10 = processName10;
		this.processName11 = processName11;
		this.processName12 = processName12;
		this.processName13 = processName13;
		this.processName14 = processName14;
		this.processName15 = processName15;
		this.processName16 = processName16;
		this.processName17 = processName17;
		this.processName18 = processName18;
		this.processName19 = processName19;
		this.processName20 = processName20;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "productionNo", column = @Column(name = "production_no", nullable = false, length = 12)),
			@AttributeOverride(name = "seq", column = @Column(name = "seq", nullable = false, length = 1)) })
	public RoutingDataId getId() {
		return this.id;
	}

	public void setId(RoutingDataId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns( {
			@JoinColumn(name = "production_no", referencedColumnName = "production_no", nullable = false, insertable = false, updatable = false),
			@JoinColumn(name = "seq", referencedColumnName = "seq", nullable = false, insertable = false, updatable = false) })
	public CommonData getCommonData() {
		return this.commonData;
	}

	public void setCommonData(CommonData commonData) {
		this.commonData = commonData;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "plant", nullable = false)
	public Plant getPlant() {
		return this.plant;
	}

	public void setPlant(Plant plant) {
		this.plant = plant;
	}

	@Column(name = "process01", length = 50)
	public String getProcess01() {
		return this.process01;
	}

	public void setProcess01(String process01) {
		this.process01 = process01;
	}

	@Column(name = "process02", length = 50)
	public String getProcess02() {
		return this.process02;
	}

	public void setProcess02(String process02) {
		this.process02 = process02;
	}

	@Column(name = "process03", length = 50)
	public String getProcess03() {
		return this.process03;
	}

	public void setProcess03(String process03) {
		this.process03 = process03;
	}

	@Column(name = "process04", length = 50)
	public String getProcess04() {
		return this.process04;
	}

	public void setProcess04(String process04) {
		this.process04 = process04;
	}

	@Column(name = "process05", length = 50)
	public String getProcess05() {
		return this.process05;
	}

	public void setProcess05(String process05) {
		this.process05 = process05;
	}

	@Column(name = "process06", length = 50)
	public String getProcess06() {
		return this.process06;
	}

	public void setProcess06(String process06) {
		this.process06 = process06;
	}

	@Column(name = "process07", length = 50)
	public String getProcess07() {
		return this.process07;
	}

	public void setProcess07(String process07) {
		this.process07 = process07;
	}

	@Column(name = "process08", length = 50)
	public String getProcess08() {
		return this.process08;
	}

	public void setProcess08(String process08) {
		this.process08 = process08;
	}

	@Column(name = "process09", length = 50)
	public String getProcess09() {
		return this.process09;
	}

	public void setProcess09(String process09) {
		this.process09 = process09;
	}

	@Column(name = "process10", length = 50)
	public String getProcess10() {
		return this.process10;
	}

	public void setProcess10(String process10) {
		this.process10 = process10;
	}

	@Column(name = "process11", length = 50)
	public String getProcess11() {
		return this.process11;
	}

	public void setProcess11(String process11) {
		this.process11 = process11;
	}

	@Column(name = "process12", length = 50)
	public String getProcess12() {
		return this.process12;
	}

	public void setProcess12(String process12) {
		this.process12 = process12;
	}

	@Column(name = "process13", length = 50)
	public String getProcess13() {
		return this.process13;
	}

	public void setProcess13(String process13) {
		this.process13 = process13;
	}

	@Column(name = "process14", length = 50)
	public String getProcess14() {
		return this.process14;
	}

	public void setProcess14(String process14) {
		this.process14 = process14;
	}

	@Column(name = "process15", length = 50)
	public String getProcess15() {
		return this.process15;
	}

	public void setProcess15(String process15) {
		this.process15 = process15;
	}

	@Column(name = "process16", length = 50)
	public String getProcess16() {
		return this.process16;
	}

	public void setProcess16(String process16) {
		this.process16 = process16;
	}

	@Column(name = "process17", length = 50)
	public String getProcess17() {
		return this.process17;
	}

	public void setProcess17(String process17) {
		this.process17 = process17;
	}

	@Column(name = "process18", length = 50)
	public String getProcess18() {
		return this.process18;
	}

	public void setProcess18(String process18) {
		this.process18 = process18;
	}

	@Column(name = "process19", length = 50)
	public String getProcess19() {
		return this.process19;
	}

	public void setProcess19(String process19) {
		this.process19 = process19;
	}

	@Column(name = "process20", length = 50)
	public String getProcess20() {
		return this.process20;
	}

	public void setProcess20(String process20) {
		this.process20 = process20;
	}

	@Column(name = "process_name01", length = 50)
	public String getProcessName01() {
		return this.processName01;
	}

	public void setProcessName01(String processName01) {
		this.processName01 = processName01;
	}

	@Column(name = "process_name02", length = 50)
	public String getProcessName02() {
		return this.processName02;
	}

	public void setProcessName02(String processName02) {
		this.processName02 = processName02;
	}

	@Column(name = "process_name03", length = 50)
	public String getProcessName03() {
		return this.processName03;
	}

	public void setProcessName03(String processName03) {
		this.processName03 = processName03;
	}

	@Column(name = "process_name04", length = 50)
	public String getProcessName04() {
		return this.processName04;
	}

	public void setProcessName04(String processName04) {
		this.processName04 = processName04;
	}

	@Column(name = "process_name05", length = 50)
	public String getProcessName05() {
		return this.processName05;
	}

	public void setProcessName05(String processName05) {
		this.processName05 = processName05;
	}

	@Column(name = "process_name06", length = 50)
	public String getProcessName06() {
		return this.processName06;
	}

	public void setProcessName06(String processName06) {
		this.processName06 = processName06;
	}

	@Column(name = "process_name07", length = 50)
	public String getProcessName07() {
		return this.processName07;
	}

	public void setProcessName07(String processName07) {
		this.processName07 = processName07;
	}

	@Column(name = "process_name08", length = 50)
	public String getProcessName08() {
		return this.processName08;
	}

	public void setProcessName08(String processName08) {
		this.processName08 = processName08;
	}

	@Column(name = "process_name09", length = 50)
	public String getProcessName09() {
		return this.processName09;
	}

	public void setProcessName09(String processName09) {
		this.processName09 = processName09;
	}

	@Column(name = "process_name10", length = 50)
	public String getProcessName10() {
		return this.processName10;
	}

	public void setProcessName10(String processName10) {
		this.processName10 = processName10;
	}

	@Column(name = "process_name11", length = 50)
	public String getProcessName11() {
		return this.processName11;
	}

	public void setProcessName11(String processName11) {
		this.processName11 = processName11;
	}

	@Column(name = "process_name12", length = 50)
	public String getProcessName12() {
		return this.processName12;
	}

	public void setProcessName12(String processName12) {
		this.processName12 = processName12;
	}

	@Column(name = "process_name13", length = 50)
	public String getProcessName13() {
		return this.processName13;
	}

	public void setProcessName13(String processName13) {
		this.processName13 = processName13;
	}

	@Column(name = "process_name14", length = 50)
	public String getProcessName14() {
		return this.processName14;
	}

	public void setProcessName14(String processName14) {
		this.processName14 = processName14;
	}

	@Column(name = "process_name15", length = 50)
	public String getProcessName15() {
		return this.processName15;
	}

	public void setProcessName15(String processName15) {
		this.processName15 = processName15;
	}

	@Column(name = "process_name16", length = 50)
	public String getProcessName16() {
		return this.processName16;
	}

	public void setProcessName16(String processName16) {
		this.processName16 = processName16;
	}

	@Column(name = "process_name17", length = 50)
	public String getProcessName17() {
		return this.processName17;
	}

	public void setProcessName17(String processName17) {
		this.processName17 = processName17;
	}

	@Column(name = "process_name18", length = 50)
	public String getProcessName18() {
		return this.processName18;
	}

	public void setProcessName18(String processName18) {
		this.processName18 = processName18;
	}

	@Column(name = "process_name19", length = 50)
	public String getProcessName19() {
		return this.processName19;
	}

	public void setProcessName19(String processName19) {
		this.processName19 = processName19;
	}

	@Column(name = "process_name20", length = 50)
	public String getProcessName20() {
		return this.processName20;
	}

	public void setProcessName20(String processName20) {
		this.processName20 = processName20;
	}

}